package com.springboot.auth.authorization.provider;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 * todo 实现短信验证码的服务
 */
//@FeignClient(name = "sms", fallback = OrganizationProviderFallback.class)
//@FeignClient(name = "organization")
public interface SmsCodeProvider {

    /**
     * @param mobile
     * @return
     */
    @GetMapping(value = "/sms/{mobile}")
    String getSmsCode(@PathVariable("mobile") String mobile, @RequestParam("businessType") String businessType);

    /**
     * @param mobile
     * @return
     */
//    @PostMapping("/oauth/sms/{mobile}")
//    String getSms(@PathVariable("mobile") String mobile);
}
